Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal: Improve loading time in courseHome page - refs BT#21784 #5589

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

christianbeeznest
Copy link
Contributor

No description provided.

Copy link

codeclimate bot commented Jun 15, 2024

Code Climate has analyzed commit 60cd1e4 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 2

View more on Code Climate.

@@ -250,11 +263,11 @@ class Session implements ResourceWithAccessUrlInterface, Stringable
#[ORM\Column(name: 'duration', type: 'integer', nullable: true)]
protected ?int $duration = null;

#[Groups(['session:read'])]
#[Groups(['session:basic', 'session:read'])]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.

#[ORM\Column(name: 'nbr_courses', type: 'integer', unique: false, nullable: false)]
protected int $nbrCourses;

#[Groups(['session:read'])]
#[Groups(['session:basic', 'session:read'])]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead.

Comment on lines +23 to +25
params: {
'groups[]': groups
}
Copy link
Member

@AngelFQC AngelFQC Jun 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

El GroupFilter no está configurado en la clase Session. Entonces, no sería necesario pasarlo en params ya que estás poniendo el grupo en otro endpoint.

Aunque usar GroupFilter en Session sería una opción para no tener otro endpoint

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En el cidReqStore podría estar useBasic a true por defecto, ya que cidReq es solo para traer la info necesaria de la sesión

@christianbeeznest christianbeeznest merged commit c6545bd into chamilo:master Jun 21, 2024
2 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants